GSOAP_ROOT = /home/zhangjing/onvif/gsoap-2.8/gsoap
#CC = gcc -g -DWITH_NONAMESPACES
CC = gcc -g
INCLUDE = -I$(GSOAP_ROOT)
SERVER_OBJS = soapC.o stdsoap2.o soapServer.o duration.o onvif.o 
CLIENT_OBJS = soapC.o stdsoap2.o soapClient.o discoveryclient.o

all: server
server: $(SERVER_OBJS) 
	$(CC) $(INCLUDE) -o onvif $(SERVER_OBJS) 

client: $(CLIENT_OBJS) 
	$(CC) $(INCLUDE) -o discoveryclient $(CLIENT_OBJS)

clean:
	rm -f *.o onvif discoveryclient
